<!doctype html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!--<title>Document</title>-->
    <link rel="stylesheet" href="/static/app/lib/iconfont/iconfont.css">
    <link rel="stylesheet" href="/static/app/css/style.css">
    <link rel="stylesheet" href="/static/app/css/login.css">
    <script src="/static/app/lib/zy.rem.js"></script>
    <script src="/static/app/lib/jquery1.12.3.min.js"></script>
    <script src="/static/app/js/base.js"></script>
    <script src="/static/layer/layer.min.js"></script>
    <style>
        .ouer{
            position: absolute;
            top: 50%;
            margin-top: -.26rem;
        }
    </style>
</head>
<body>
<div class="center">
    <!--<img class="logo" src="/static/app/img/logo.png"/>-->
    <div class="logos" id="logos">
        <img class="logo_app" src="/static/app/img/app_logo2.png"/>
        <span class="logo_font">北斗位置服务 <br><center>管理云平台</center></span>
    </div>
    <form  class="login-from" method="post" id="form" form="submit">
        <div class="login-container">
            <img class="ouer" src="/static/app/img/zhang.png"/>
            <input placeholder="请输入手机号码" type="text" name="phone" style=" padding: 0.8rem;">
        </div>
        <div class="login-container">
            <img class="ouer" src="/static/app/img/mi.png"/>
            <input placeholder="请输入密码" type="password" name="password" style=" padding: 0.8rem;">
            <a href="{:url('for_pw')}" class="out">忘记密码</a>
        </div>
        <div class="login-container">
            <button type="submit" style="margin-top: 1.8rem;">登录</button>
            <div class="reg">
                <a href="{:url('reg')}">用户注册</a>
            </div>
        </div>
    </form>
</div>
</body>
{include file='public:validation'}
<script>
    $(function () {
       $appone=window.localStorage.getItem('appone');
        if (!$appone) {
            window.localStorage.setItem('appone','北斗1.0');
        }
    });
    //提交
    function roleSubmit(){
        var form=document.getElementById("form");
        var formData=new FormData(form);

        $.ajax({
            url:"{:Url('Login/loginData')}",
            type:'POST',
            data:formData,
            async: false,
            cache: false,
            contentType: false, //不设置内容类型
            processData: false, //不处理数据
            success:function(res){
                if (res.code != 200) {
                    layer.msg(res.msg, {shade: 0.5, time: 1000,icon: 2});
                    return false;
                }
                window.location.href="{:url('Map/mapdata')}";
               // layer.msg(res.msg, {shade: 0.5, time: 800, icon: 1}, function(){
               //
               // });
            }
        });
    }
</script>
</html>